/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my.cbr.similarity;

import jcolibri.exception.NoApplicableSimilarityFunctionException;
import jcolibri.method.retrieve.NNretrieval.similarity.LocalSimilarityFunction;
import my.cbr.database.model.measurement.MeasurementInstance;

/**
 *
 * @author Geir Ole
 */
public class TemperatureSimilarity implements LocalSimilarityFunction {

    public double compute(Object caseObject, Object queryObject) throws NoApplicableSimilarityFunctionException {
        if(!isApplicable(caseObject, queryObject))
            return 0.0;
        
        return 0.0;
    }

    public boolean isApplicable(Object caseObject, Object queryObject) {
        return (caseObject instanceof MeasurementInstance)&&(queryObject instanceof MeasurementInstance);
    }
    
}
